package com.codeyang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 描述: TO-删除标志-DO
 * @author CodeYang_Site
 * @version 2021/4/20 15:34
 */
/**
    * 短息发送记录表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_sms_log")
public class SmsLog extends BaseEntity {
    /**
     * 表id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 发送时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 验证码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 0.发送成功1发送失败
     */
    @TableField(value = "`status`")
    private String status;

    /**
     * 0注册验证码，1，挂号提醒
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 发送失败的错误信息
     */
    @TableField(value = "error_info")
    private String errorInfo;

    public static final String COL_ID = "id";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CODE = "code";

    public static final String COL_STATUS = "status";

    public static final String COL_TYPE = "type";

    public static final String COL_ERROR_INFO = "error_info";
}